/* Styles généraux ------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
*
{
    margin: 0;
    padding: 0;
}

body 
{
    margin: 0;
    padding: 0;
    font-family: Tahoma, arial, sans-serif;
    color: black;
    background: url(../img/forme.png) fixed no-repeat bottom right;
    background-size: 10%;

}

a
{
    text-decoration: none;
    color: black;
    font-weight: bold;
}

a:hover
{
    color: #007c6d;
    cursor: pointer;
}

#scrollTopBtn {
    position: fixed;
    bottom: 75px;
    left: 75px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#scrollTopBtn img {
    width: 50px;
}

/* Header ----------------------------------------------------------------------------------------------------------------- */

#header_top
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em;
}

#logo_agiris
{
    width: 12em;
    margin-left: 2em;
} 

.titre
{
    display: flex;
    align-items: center;
    justify-content: end;
}

.titre h1
{
    color: #007c6d;
    
}

.titre img
{
    width: 8%
}

.title
{
    display: flex;
    flex-direction: column;
    padding: 0.5em;
}

.title p
{
    font-size: small;
    font-style: italic;
    text-align: center;
}

#header_btm
{
    background-color: #3bb49e;
}

#header_btm p
{
    color: white;
    text-align: justify;
    margin-left: 4em;
    padding: 0.5em;
}

/* Main ----------------------------------------------------------------------------------------------------------------- */

.cockpit_main
{
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 4rem;
    align-items: flex-start;
}

.cockpit_main #states
{
    width: 68%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cockpit_main article
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 32%;
}

.cockpit_main .legend
{
    padding: 2em;
    border: 1px solid #007c6d;
    border-radius: 1em;
    max-height: fit-content;
    background-color: #f9f9f9;
}

.cockpit_main .legend h3
{
    text-align: center;
    margin-bottom: 12px;
    color: #007c6d;
}

.cockpit_main .legend_item
{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: medium;
}


.cockpit_main .legend_item img
{
    max-width: 35px;
}

.cockpit_main .legend .tab
{
    overflow: hidden;
    border-radius: 0.5em;
    background-color: #e6e6e6;
    display: flex;
    justify-content: space-around;
    padding: 5px;
}

.cockpit_main .legend .tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  width: 100%;
}

.cockpit_main .legend .tab button:hover {
    font-weight: bold;
    font-size: medium
}

.cockpit_main .legend .tab button.active {
    background-color: #007c6d;
    color: white;
    border-radius: 0.3em;
    font-weight: bold;
    font-size: medium
}

.cockpit_main .legend .tabcontent
{
    display: none;
    grid-template-columns: 1fr 1fr
}

.cockpit_main .legend .tabcontent .tabcontent_separator
{
    border-top: 2px dashed #f8cb00;
}

.cockpit_main .legend .tabcontent .tabcontent_links
{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1em;
    align-items: center;
    padding: 0.5em;
}

.cockpit_main .legend .tabcontent .tabcontent_links img
{
    max-width: 150px;
}




.cockpit_service
{
    display: flex;
    align-items: center;
    gap: 15px;
}

.cockpit_service_header h2
{
    font-size: medium;
}

.aide_section
{
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 6rem auto;
    max-width: 75%;
}

.aide_section_logo img
{
    width: 9em;
}

.aide_section_content
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.faq {
    margin: 6rem auto;
    max-width: 75%;
}

.faq .faq-item 
{
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.faq .question {
    color: #007c6d;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}
.faq .answer {
    display: none;
    padding: 10px;
    background-color: white;
    color: black;
}
.faq .question::after {
    content: '\25BC';
    font-size: 12px;
}
.faq .question.open::after {
    content: '\25B2';
}

#faq_search {
    min-height: 30px;
    width: 25rem;
    padding: 5px;
    border: 2px solid #f8cb00;
    border-radius: 5px;
}

.separator {
    height: 3px;
    background-color: #f8cb00;
    margin: 0 auto;
    width: 50%;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #logo_agiris
    {
        width: 6em;
        margin-left: 0.5em;
    } 

    .titre h1
    {
        padding: 0.2em;
        font-size: x-large;
    }

    .titre h1
    {
        text-align: end;
    }

    .titre img
    {
        visibility: hidden;
    }

    .title p
    {
        text-align: end;
    }

    #header_btm p
    {
        margin-left: 0;
    }

    .cockpit_main
    {
        flex-direction: column;
        margin-top: 20px;
        padding: 10px;
    }

    .cockpit_main #states
    {
        grid-template-columns: auto;
        width: 100%;
    }

    .cockpit_main article
    {
        max-width: 100%;
        margin-top: 50px;
    }
}